package com.yuting.email.service;

import lagou.service.dubbo.api.RpcEmailService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class RpcEmailServiceImpl implements RpcEmailService {

    @Autowired
    private EmailUtil emailUtil;

    @Override
    public Boolean sendCode(String email, String code) {
        emailUtil.sendSimpleEmail(email, "verifycode", code);
        return true;
    }
}
